package com.android.sharecar.model;

/**
 * Model class that used to record talking content and online msg. 
 * @author xinyan
 * @date 2011-10-20
 */
public class UserTalkMsg extends DynamicMsg {

	// When user login, display online msg in dynamic bar,
	// talk msg will display if user send msg in talk list.
	// public static final int TYPE_ONLINE = 1, TYPE_TALK = 2;

	private String content;
	private int talkId;
	private int commentNum;

	// private int msgType;

	/**
	 * New an online msg.
	 */
	public UserTalkMsg() {
		TAG = "UserTalk";
		TYPE = MessageType.Online; // default is online msg.
		// msgType = TYPE_ONLINE; // default is online msg.
	}

	public UserTalkMsg(MessageType type) {
		TAG = "UserTalk";
		TYPE = type;
		// this.msgType = msgType; // default is online msg.
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getTalkId() {
		return talkId;
	}

	public void setTalkId(int talkId) {
		this.talkId = talkId;
	}

	public int getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(int commentNum) {
		this.commentNum = commentNum;
	}

	/**
	 * msgType Differentiate user's online and talk msg, cause this class 
	 * should store two types of msg.
	 */
	/*public int getMsgType() {
		return msgType;
	}*/

	/**
	 * msgType Differentiate user's online and talk msg, cause this class 
	 * should store two types of msg.
	 */
	/*public void setMsgType(int msgType) {
		this.msgType = msgType;
	}*/

}
